﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Net;



namespace InterfazWI
{
    public partial class Form1 : Form
    {
        private BackgroundWorker bw = new BackgroundWorker();
        

        public Form1()
        {
            InitializeComponent();
            String mensaje = "";
            if (configData.parametros(ref mensaje) != true) {
                MessageBox.Show(mensaje, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Close();
            
            }

            
        }

        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {

        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        
       // private void button1_Click(object sender, EventArgs e)
        private void bw_DoWork(object sender, DoWorkEventArgs e)
        {
            bw.WorkerSupportsCancellation = true;
            BackgroundWorker worker = sender as BackgroundWorker;
            Servidor listener = new Servidor();
            
        }

        private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        
    }
}
